package com.easylinkin.linkappapi.asset.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.easylinkin.linkappapi.common.translate.CodeI18n;
import lombok.Data;
import org.hibernate.validator.constraints.Length;


/**
 * <p>
 * 设备资产用户关联表
 * </p>
 *
 * @author XuGuoQing
 * @since 2020-04-15
 */
@CodeI18n
@Data
@TableName("linkapp_asset_ref_user")
public class AssetRefManager extends Model<AssetRefManager> {


    public AssetRefManager(String assetId, String userId) {
        this.assetId = assetId;
        this.userId = userId;
    }


    /**
     * 资产编号
     */
    @TableField("asset_id")
    @Length(max = 32, message = "资产id 超长")
    private String assetId;


    /**
     * 管理员的编号
     */
    @TableField("user_id")
    @Length(max = 32, message = "管理人员id 超长")
    private String userId;

}
